
var YwUtil = {
  openMaxsizeWin : function (f) {
    var w = screen.width - 10;
    var h = screen.height - 89;
    window.open(f.url, '_blank', 'top=0,left=0,fullscreen=0,toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=1,width='+w+',height='+h);
  },
  openWin: function (f) {
    var w = screen.width - 10;
    var h = screen.height - 70;
    var l = 0, t = 0;
    if (f && f.w) { w = f.w; l = (screen.availWidth - f.w) / 2; }
    if (f && f.h) { h = f.h; t = (screen.availHeight - f.h) / 2; }
    window.open(f.url, '_blank', 'top='+t+',left='+l+',fullscreen=0,toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=0,resizable=1,width='+w+',height='+h);
  },
  wait : function (msg) {
    Ext.MessageBox.show({
      title   : '提示',
      msg     : msg ? msg : '读取数据中，请稍后。。。',
      width   : 250,
      icon    : Ext.MessageBox.INFO,
      progress:true,
      //wait:true,
      //waitConfig:{interval:50},
      closable:false
    });
  },
  getIframeHtml : function (params) {
    return '<iframe src="' + params.url + '" scrolling="auto" frameborder="0" width="100%" height="100%"></iframe>';
  }
  
};
